package com.yjt.fresh.adpater.adpsection;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.yjt.fresh.R;

/**
 * 购物车item的内容
 * Created by mcc on 2018-07-30.
 */

public class AdpRvAtyCartContentHolder extends RecyclerView.ViewHolder {

    private final CheckBox mCbContent;
    private final ImageView mIvContent;
    private final TextView mTvTitle;
    private final TextView mTvType;
    private final LinearLayout mLlCount;
    private final TextView mTvCount;
    private final TextView mTvNewPrice;
    private final TextView mTvOldPrice;
    private final View mVBottom;
    private final View mItemView;
    private final RelativeLayout mRlOldPrice;
    private final ImageView mIvSub;
    private final ImageView mIvAdd;

    public ImageView getIvSub() {
        return mIvSub;
    }

    public ImageView getIvAdd() {
        return mIvAdd;
    }

    public RelativeLayout getRlOldPrice() {
        return mRlOldPrice;
    }

    public View getItemView() {
        return mItemView;
    }

    public CheckBox getCbContent() {
        return mCbContent;
    }

    public ImageView getIvContent() {
        return mIvContent;
    }

    public TextView getTvTitle() {
        return mTvTitle;
    }

    public TextView getTvType() {
        return mTvType;
    }

    public LinearLayout getLlCount() {
        return mLlCount;
    }

    public TextView getTvCount() {
        return mTvCount;
    }

    public TextView getTvNewPrice() {
        return mTvNewPrice;
    }

    public TextView getTvOldPrice() {
        return mTvOldPrice;
    }

    public View getVBottom() {
        return mVBottom;
    }

    public AdpRvAtyCartContentHolder(View itemView) {
        super(itemView);
        mItemView = itemView;
        mCbContent = itemView.findViewById(R.id.cbAppRecycleItemAtyCartContent);
        mIvContent = itemView.findViewById(R.id.ivAppRecycleItemAtyCartContent);
        mTvTitle = itemView.findViewById(R.id.tvAppRecycleItemAtyCartContentTitle);
        mTvType = itemView.findViewById(R.id.tvAppRecycleItemAtyCartContentType);
        mLlCount = itemView.findViewById(R.id.llAppRecycleItemAtyCartContentCount);
        mTvCount = itemView.findViewById(R.id.tvAppRecycleItemAtyCartContentCount);
        mTvNewPrice = itemView.findViewById(R.id.tvAppRecycleItemAtyCartContentNewPrice);
        mTvOldPrice = itemView.findViewById(R.id.tvAppRecycleItemAtyCartContentOldPrice);
        mVBottom = itemView.findViewById(R.id.vAppRecycleItemAtyCartContent);
        mRlOldPrice = itemView.findViewById(R.id.rlAppRecycleItemAtyCartContentOldPrice);
        mIvSub = itemView.findViewById(R.id.ivAppRecycleItemAtyCartContentSub);
        mIvAdd = itemView.findViewById(R.id.ivAppRecycleItemAtyCartContentAdd);
    }
}
